class Foo {
  normalProperty: Boolean
  nestedStructure: Bar
}

class Bar {
  propertyInNestedStructure: Listing<String>
}

foo = new Foo {
  (nestedStructure.propertyInNestedStructure) {
    "Hello world"
  }
  normalProperty = true
}
